
package com.wzp.retry;

/**
 * @author wangzhengpeng
 */
public class Main {

    public static void main(String[] args) throws Exception {
        UserFacadeImpl user = new UserFacadeImpl();
        //SpringRetry代理测试
        SpringRetryProxy springRetryProxy = new SpringRetryProxy();
        UserFacade u = (UserFacade) springRetryProxy.newProxyInstance(user);
        //u.add();//失败不重试
        u.query();//失败重试
    }
}

